package 面向对象_特征3;

public class 面向对象_4_多态2 extends  面向对象_4_多态1 {
    String shool;

    @Override
    void print(){
        System.out.println("子类的方法");
    }


    public static void main(String[] args) {
        面向对象_4_多态1 dx = new 面向对象_4_多态2();
        dx.print();
        System.out.println(dx instanceof 面向对象_4_多态1);
    }
}
